package com.wlf.demo.pageHelper.dao;

import com.github.pagehelper.Page;
import com.wlf.demo.pageHelper.model.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {
    Page<User> selectByPage(@Param("user") User user, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}